package com.example.myapplication.Sqlitedatabase;


import androidx.annotation.NonNull;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

//保存充值的历史记录，记录车辆号、充值金额、操作人、时间。
@DatabaseTable(tableName = "mathonce")
public class Q1Bean {

    @DatabaseField(columnName = "id", generatedId = true)
    public int id;

    @DatabaseField(columnName = "carNumber")
    String carNumber;
    @DatabaseField(columnName = "money")
    int money;
    @DatabaseField(columnName = "man")
    String man;
    @DatabaseField(columnName = "time")
    String time;

    public Q1Bean(){}

    public Q1Bean( String carNumber, int money, String man, String time) {
        this.carNumber = carNumber;
        this.money = money;
        this.man = man;
        this.time = time;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getMan() {
        return man;
    }

    public void setMan(String man) {
        this.man = man;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Q1Bean{" +
                "carNumber='" + carNumber + '\'' +
                ", money=" + money +
                ", man='" + man + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
